package com.winit.schedule.job.tracker.event;

import com.winit.schedule.core.event.AbstractEvent;
import com.winit.schedule.core.repository.entity.TaskTrackerEntity;

import java.util.List;

public class TaskTrackerChangeEvent extends AbstractEvent<TaskTrackerEventType> {

    private List<String>      taskTrackers;

    private String            timeoutTaskItems;

    public TaskTrackerChangeEvent(TaskTrackerEventType type, String timeoutTaskItems){
        super(type);
        this.timeoutTaskItems = timeoutTaskItems;
    }

    public TaskTrackerChangeEvent(TaskTrackerEventType type, List<String> taskTrackers){
        super(type);
        this.taskTrackers = taskTrackers;
    }

    public List<String> getTaskTrackers() {
        return taskTrackers;
    }

    public void setTaskTrackers(List<String> taskTrackers) {
        this.taskTrackers = taskTrackers;
    }

    public String getTimeoutTaskItems() {
        return timeoutTaskItems;
    }

    public void setTimeoutTaskItems(String timeoutTaskItems) {
        this.timeoutTaskItems = timeoutTaskItems;
    }

}
